//////////////////////////////////////////
//
//	FlexInc. 2011
//	http://www.loziosecchi.it/flex_inc
//	http://twitter.com/loziosecchi
//
//////////////////////////////////////////

package flexInc.spark.effects
{
	import flash.utils.ByteArray;
	
	import spark.effects.AnimateTransitionShader;

	/**
	 *  The WhiteCrossFade effect uses Pixel Bender, 
	 *  which is not supported for AIR mobile applications.
	 */
	[DiscouragedForProfile("mobileDevice")]

	/**
	 * The WhiteCrossFade effect performs a bitmap transition effect by running a
	 * <i>crossfade</i> between the first and second bitmap.
	 * The crossfade blends the two bitmaps over the duration of the 
	 * animation.
	 *
	 * @see spark.effects.AnimateTransitionShader
	 * @see spark.effects.AnimateTransitionShader#shaderByteCode
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 10
	 *  @playerversion AIR 1.5
	 *  @productversion Flex 4
	 */
	public class WhiteCrossFade extends AnimateTransitionShader
	{
		[Embed(source="WhiteCrossFade.pbj", mimeType="application/octet-stream")]
		private static var WhiteCrossFadeShaderClass:Class;
		private static var whiteCrossFadeShaderCode:ByteArray = new WhiteCrossFadeShaderClass();

		/**
		 *  Constructor. 
		 *
		 *  @param target The Object to animate with this effect.  
		 *
		 *  @langversion 3.0
		 *  @playerversion Flash 10
		 *  @playerversion AIR 1.5
		 *  @productversion Flex 4
		 */
		public function WhiteCrossFade(target:Object=null)
		{
			super(target);

			shaderByteCode = whiteCrossFadeShaderCode;
		}
	}
}